import request from '../request'

// 申请成为托管经营
export function applyTrusteeship(data) {
	return request.post('trusteeship.user/apply', data)
}

// 托管经营信息
export function trusteeshipDetail() {
	return request.get('trusteeship.user/detail', {}, {
		custom: {
			loading: false
		}
	})
}

// 商品列表
export function trusteeshipProductList(data) {
	return request.get('trusteeship.product/list', data, {
		custom: {
			loading: false
		}
	})
}

// 订单唤起支付tradeNO
export function aliPayment(data) {
	return request.post('trusteeship.order/aliPayment', data, {
		custom: {
			loading: false
		}
	})
}

// 获取协议
export function getAgreementList(data) {
	return request.get('trusteeship.user/getAgreement',data, {
		custom: {
			loading: false
		}
	})
}